package com.zdhy.it.redis;

import redis.clients.jedis.Jedis;

/**
 * Created by 梁浩峰 on 2016/11/1 18:55.
 */
public class test {
    public static void main(String[] args) {
        Jedis jedis = new Jedis("192.168.83.191");
        jedis.auth("loong");
        System.out.println("Connection to server sucessfully");
        //check whether server is running or not
        System.out.println("Server is running: "+jedis.ping());
    }
}
